const {DataTypes} = require('sequelize')
// const sequelize = require('../shared/sequelize')

module.exports = (sequelize) =>{
    // class Discuss extends Model{
    // console.log(sequelize)
    // }
    // Discuss.init({
    const Discuss = sequelize.define('discuss',{
        name:{type:DataTypes.STRING,allowNull:false,comment:'评论人姓名'},
        content:{type:DataTypes.TEXT('tiny'),allowNull:false,comment:'评论内容'},
        time:{type:DataTypes.DATE,allowNull:false,comment:'评论时间'},

    })
    return Discuss
}